A test statistic is a number calculated from a sample of data. It helps us determine whether the data provides evidence for or against a particular hypothesis. It measures how far the sample data diverges from the expected values under the null hypothesis.